package org.hospital.service;

import java.util.List;

import org.hospital.entity.BillProject;
import org.hospital.entity.BillProjectId;

import com.alibaba.fastjson.JSONArray;

public interface BillProjectService {
	/**
	 * 获取持久化对象
	 * 
	 * @param billProjectId
	 * @return
	 */
	BillProject getById(BillProjectId billProjectId);

	/**
	 * merge 方法插入 数据库
	 * 
	 * @param entity
	 * @return
	 */
	BillProject addEntity(BillProject entity);

	/**
	 * merge 方法插入 数据库
	 * 
	 * @param entity
	 * @return
	 */
	BillProject saveEntity(BillProject entity);

	/**
	 * merge 方法批量插入 数据库
	 * 
	 * @param bpList
	 * @return
	 */
	List<BillProject> addEntityList(List<BillProject> bpList);
	
	/**
	 * 获取单据表详情
	 * @param billId
	 */
	JSONArray getBillDetailTable(int billId);
}
